{extend name='app' /}
{block name='title'}首页{/block}

{block name="stylesheet"}
{/block}

{block name="breadcrumb"}
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-3">
            <div class="ibox ">
                <div class="ibox-title">
                    <span class="label label-success float-right">项目数量</span>
                    <h5>数量</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$projectNum}</h1>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox ">
                <div class="ibox-title">
                    <span class="label label-info float-right">订单数量</span>
                    <h5>数量</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$orderNum}</h1>

                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox ">
                <div class="ibox-title">
                    <span class="label label-primary float-right">用户数量</span>
                    <h5>数量</h5>
                </div>d
                <div class="ibox-content">
                    <h1 class="no-margins">{$userNum}</h1>

                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox ">
                <div class="ibox-title">
                    <span class="label label-danger float-right">今日访客</span>
                    <h5>数量</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$userDay}</h1>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-4">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>消息</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content ibox-heading">
                    <h3><i class="fa fa-envelope-o"></i> 订单</h3>
                    <small><i class="fa fa-tim"></i> 您有{$orderTotal}条订单。</small>
                </div>
                <div class="ibox-content">
                    <div class="feed-activity-list">
                        {foreach $order as $item}
                            <div class="feed-element">
                                <div>
                                    <small class="float-right text-navy">
                                        {if $item->order_status == 1}
                                            待审核
                                        {/if}
                                        {if $item->order_status == 2}
                                            已拒绝
                                        {/if}
                                        {if $item->order_status == 3}
                                            已同意
                                        {/if}
                                    </small>
                                    <strong>{$item->user->nickname}</strong>
                                    <div>{$item->client_name} </div>
                                    <small class="text-muted">{$item->create_time}</small>
                                </div>
                            </div>
                        {/foreach}

                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-8">

            <div class="row">
                <div class="col-lg-6">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h5>项目列表</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                <a class="close-link">
                                    <i class="fa fa-times"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content table-responsive">
                            <table class="table table-hover no-margins">
                                <thead>
                                <tr>
                                    <th>状态</th>
                                    <th>日期</th>
                                    <th>项目名字</th>
                                    <th>积分</th>
                                </tr>
                                </thead>
                                <tbody>
                                {foreach $project as $item}
                                    <tr>
                                        <td>
                                            <small>
                                                {if $item->status == 0}
                                                    待上线
                                                {/if}
                                                {if $item->status == 1}
                                                    已上线
                                                {/if}
                                                {if $item->status == 2}
                                                    已结束
                                                {/if}
                                            </small>
                                        </td>
                                        <td><i class="fa fa-clock-o"></i> {$item->create_time}</td>
                                        <td>{$item->name}</td>
                                        <td class="text-navy"> <i class="fa fa-level-up"></i> {$item->integral} </td>
                                    </tr>
                                {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>


    </div>
</div>
{/block}

{block name="script"}

{/block}

